import { Component } from '@angular/core';
import { NavController, NavParams, IonicPage } from 'ionic-angular';
import { HttpServiceProvider } from '../../providers/http-service/http-service';

@IonicPage()
@Component({
  selector: 'page-actlist',
  templateUrl: 'actlist.html',
})
export class ActlistPage {
    search:any   = {isend: '1'}
    datalist:any = []

    constructor(public navCtrl: NavController, public navParams: NavParams,public http: HttpServiceProvider) {
        this.list()
    }

    list(){
       this.http.actlist(this.search, (result) => {
            if(result)
                this.datalist = result.list
        }) 
    }

    selectPage(val){
        this.search.isend = val+'';
        this.list()
    }

    detail(item){
    	this.navCtrl.push('ActdetailPage', {item: item})
    }

    ionViewDidLoad() {
        
        console.log('ionViewDidLoad actlistPage');
    }
}



